#ifndef _PLUGIN_
#define _PLUGIN_

#include <pthread.h>

#define PLUGIN_PORT				3498
#define PLUGIN_MAX_CONNECTION	32

struct plugin_info {
	pthread_t thread;
	int sock;
};

int plugin_listen();
void plugin_notice_breakpoint(int plugin_id, unsigned int *regs, int nreg);
void plugin_notice_dump_memory(int plugin_id, int ret);
void plugin_notice_add_breakpoint(int plugin_id, int ret);
void plugin_notice_del_breakpoint(int plugin_id, int ret);
int plugin_stopall();

#endif
